import Vue from 'vue';
import VueRouter from 'vue-router';
//主页面入口
import App from "./app.vue";
//其他页面
import Home from "./pages/home/home.vue";
import Member from "./pages/member/member.vue";
import Class from "./pages/class/class.vue";
import My from "./pages/my/my.vue";
import Shop from "./pages/shop/shop.vue";

Vue.use(VueRouter);

const router = new VueRouter({
	// mode:'history',//可以设置去掉地址栏的#
	routes:[
		{path:"/",component:Home},
		{path:"/member",component:Member},
		{path:"/class",component:Class},
		{path:"/my",component:My},
		{path:"/shop",component:Shop}
	]
})
//指定一开始加载的页面
//router
new Vue({
	router,
	render:h=>h(App)
}).$mount("#app")